
package com.zsrt.day20170417.ch03;

public class PetShop {
	
	/**
	 * 商店名字
	 */
	private String shopName;
	
	/**
	 * 不定义长度时  用set 或者构造方法
	 * 宠物数组 longzi
	 */
	private Pet[] pets;

	
	
	/**
	 * @return the shopName
	 */
	public String getShopName() {
		return shopName;
	}

	/**
	 * @param shopName the shopName to set
	 */
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	/**
	 * @return the pets
	 */
	public Pet[] getPets() {
		return pets;
	}

	/**
	 * @param pets the pets to set
	 */
	public void setPets(Pet[] pets) {
		this.pets = pets;
	}

	/**
	 * 构造方法
	 * @param shopName
	 * @param pets
	 */
	public PetShop(String shopName, Pet[] pets) {
		super();
		this.shopName = shopName;
		this.pets = pets;
	}
	
	

}
